#ifndef NETWORK_HTTPGETREQUEST_H
#define NETWORK_HTTPGETREQUEST_H
#include "networkhttprequest.h"

#include <QMetaObject>

class QNetworkReply;
class QNetworkAccessManager;
class QUrl;

namespace Network {

class HttpGetRequest: public HttpRequest
{
    Q_OBJECT
public:
    explicit HttpGetRequest(QObject *parent = 0);
signals:
    void responsed(Response *response);
private:
    virtual QNetworkReply *execute(QNetworkAccessManager &manager, const QUrl &url) const;
private:
    QNetworkReply *m_reply;
    QMetaObject::Connection  m_connection;
};

}
#endif // NETWORK_HTTPGETREQUEST_H
